﻿namespace dPet.Infrastructure.EntityFramework.ModelConfigurations
{
	using dPet.Domain.Models;
	using Hangerd.EntityFramework;

	public class ServiceSKUPropertyValueConfig : EntityTypeConfigBase<ServiceSKUPropertyValue>
	{
		public ServiceSKUPropertyValueConfig()
		{
			Property(skupv => skupv.Value)
				.IsRequired()
				.HasMaxLength(255);

			HasRequired(skupv => skupv.SKUProperty)
				.WithMany(skup => skup.Values);
		}
	}
}
